Skip to content

Reduce void | undefined only in conjunction with subtype reduction - #42846

Merged
Anders Hejlsberg (ahejlsberg) merged 3 commits into
masterfrom
fix42786
Feb 18, 2021
Merged

Reduce void | undefined only in conjunction with subtype reduction#42846
Anders Hejlsberg (ahejlsberg) merged 3 commits into
masterfrom
fix42786

Conversation

@ahejlsberg

Copy link
Copy Markdown
Member

Fixes #42786.

@ahejlsberg

Copy link
Copy Markdown
Member Author

Daniel Rosenwasser (@DanielRosenwasser) Will you cherry pick this one into 4.2?

@DanielRosenwasser

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) cherry-pick this to release-4.2

@typescript-bot

TypeScript Bot (typescript-bot) commented Feb 18, 2021

Copy link
Copy Markdown
Contributor

Heya Daniel Rosenwasser (@DanielRosenwasser), I've started to run the task to cherry-pick this into release-4.2 on this PR at e7b6601. You can monitor the build here.

@typescript-bot

Copy link
Copy Markdown
Contributor

Hey Daniel Rosenwasser (@DanielRosenwasser), I've opened #42852 for you.

TypeScript Bot (typescript-bot) pushed a commit to typescript-bot/TypeScript that referenced this pull request Feb 18, 2021
Component commits:
0edae12 Reduce void | undefined only in conjunction with subtype reduction

6b487a6 Accept new baselines

e7b6601 Add regression test
Daniel Rosenwasser (DanielRosenwasser) pushed a commit that referenced this pull request Feb 18, 2021
Component commits:
0edae12 Reduce void | undefined only in conjunction with subtype reduction

6b487a6 Accept new baselines

e7b6601 Add regression test

Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inference to unions containing void behave differently from 4.2 on

4 participants